#ifndef CONVEXHULLTESTVIEW_H
#define CONVEXHULLTESTVIEW_H

#include <QWidget>
#include <vector>
#include "point.h"

namespace Ui {
class ConvexHullTestView;
}

class ConvexHullTestView : public QWidget
{
    Q_OBJECT
    
public:
    explicit ConvexHullTestView(QWidget *parent = 0);
    ~ConvexHullTestView();
    
protected:
    virtual void paintEvent(QPaintEvent *);
    virtual void mousePressEvent(QMouseEvent *);
private:
    void ClearPoints();
private:
    Ui::ConvexHullTestView *ui;
    std::vector<Point *> points_;
    std::vector<Point *> convex_hull_;
};

#endif // CONVEXHULLTESTVIEW_H
